Skip to content

Pin GitHub Actions to specific commit SHAs for security#23

Merged
yosriady merged 1 commit into
mainfrom
claude/pin-github-actions-825k0
May 3, 2026
Merged

Pin GitHub Actions to specific commit SHAs for security#23
yosriady merged 1 commit into
mainfrom
claude/pin-github-actions-825k0

Conversation

@yosriady
Copy link
Copy Markdown
Contributor

@yosriady yosriady commented May 3, 2026

Summary

This PR pins all GitHub Actions dependencies to specific commit SHAs instead of using version tags, improving supply chain security by preventing potential tag spoofing attacks.

Key Changes

  • actions/checkout: Updated from v6 to de0fac2e4500dabe0009e67214ff5f5447ce83dd (v6.0.2)
  • actions/setup-node: Updated from v6 to 48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e (v6.4.0)
  • pnpm/action-setup: Updated from v6.0.3 tag references to 903f9c1a6ebcba6cf41d87230be49611ac97822e (v6.0.3)

Implementation Details

All GitHub Actions across three workflow files (ci.yml and release.yml) have been updated to use immutable commit SHAs with inline version comments for maintainability. This follows GitHub's security best practices by preventing potential attacks where a tag could be reassigned to a different commit.

https://claude.ai/code/session_017kCbKzZZ2VMzbxwYkAwgsf

Pin actions/checkout, actions/setup-node, and the remaining
pnpm/action-setup uses to full commit SHAs to mitigate supply chain
risk from compromised tags.
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@yosriady yosriady merged commit 2afe4ba into main May 3, 2026
9 checks passed
@yosriady yosriady deleted the claude/pin-github-actions-825k0 branch May 3, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants